#pragma once 
#include <OgreVector3.h>
#include "Defs.h"

inline bool intersects(const Ogre::Vector3 &pos1, Ogre::Real radius1, 
                const Ogre::Vector3 &pos2, Ogre::Real radius2) {
    //ASSERT(radius1 >= 0 && radius2 >= 0);
    return pos1.squaredDistance(pos2) < (radius1+radius2) * (radius1+radius2);
}